package com.wss.common.utils;

import cn.hutool.core.collection.CollUtil;
import cn.hutool.extra.mail.MailAccount;
import cn.hutool.extra.mail.MailUtil;

public class EmailUtil {


    public static void sendMail(String toEmail,String title,String content){
        MailAccount account = new MailAccount();
        account.setHost("smtp.exmail.qq.com");
        account.setPort(25);
        account.setAuth(true);
        account.setFrom("wang.zhongliang@applesay.cn");
        account.setUser("wang.zhongliang@applesay.cn");
        account.setPass("95KpBGtgMLpyrErn"); //密码
        MailUtil.send(account,toEmail, title, content, false);
    }
}
